Color chooser: More accessible names
authorMatthias Clasen <mclasen@redhat.com>
Sun, 5 Jan 2014 14:19:58 +0000 (09:19 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 5 Jan 2014 14:21:32 +0000 (09:21 -0500)
Set the accessible name of the 'custom color' button too.

gtk/gtkcolorchooserwidget.c
testsuite/a11y/colorchooser.txt

index 9665490e15c9c306466c63a0dd3c6cdcb41dce37..a24c993e8f7923110aaa745b34fb245b5fa263a4 100644 (file)
@@ -526,7 +526,8 @@ gtk_color_chooser_widget_init (GtkColorChooserWidget *cc)
   gtk_widget_set_name (button, "add-color-button");
   atk_obj = gtk_widget_get_accessible (button);
   atk_object_set_role (atk_obj, ATK_ROLE_PUSH_BUTTON);
-  atk_object_set_description (atk_obj, _("Create custom color"));
+  atk_object_set_name (atk_obj, _("Custom color"));
+  atk_object_set_description (atk_obj, _("Create a custom color"));
   connect_button_signals (button, cc);
   gtk_color_swatch_set_icon (GTK_COLOR_SWATCH (button), "list-add-symbolic");
   gtk_container_add (GTK_CONTAINER (box), button);
index e3e73be61ce45726e708649ee35c573b8db7ec3c..995f494139437f11a3bc31c8616cb162cf0f9ddc 100644 (file)
@@ -717,7 +717,8 @@ window1
             "push button"
             parent: unnamed-GtkContainerAccessible-39
             index: 0
-            description: Create custom color
+            name: Custom color
+            description: Create a custom color
             state: enabled focusable sensitive showing visible
             toolkit: gtk
             <AtkComponent>